<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script src='./reverseString.js'></script>
  <script src='./truncate.js'></script>
</head>

<body>
  <script>
    let str1 = 'hello'
    console.log(reverseString(str1))
    let str2 = 'heleh'
    console.log(palindrome(str2))
    let str3 = '我要一直努力要好好生活'
    console.log(truncate(str3, 4))
  </script>
</body>

</html>